GUI description ...
Properties
BackgroundGraphic
Gets/sets the sprite used to draw the GUI's background image.
Clickable
Gets/sets whether the GUI can be clicked on, or whether clicks pass straight through.
ControlCount
Gets the number of controls on this GUI.
Controls
Accesses the controls that are on this GUI.
Height
Gets/sets the height of the GUI.
ID
Gets the ID number of the GUI.
Transparency
Gets/sets the transparency of the GUI.
Visible
Gets/sets whether the GUI is visible.
Width
Gets/sets the width of the GUI.
X
Gets/sets the X co-ordinate of the GUI's top-left corner.
Y
Gets/sets the Y co-ordinate of the GUI's top-left corner.
ZOrder
Gets/sets the GUI's z-order relative to other GUIs.
Methods
Centre
Moves the GUI to be centred on the screen.
GetAtScreenXY
static GUI GetAtScreenXY(int x, int y)
Returns the GUI at the specified location.
GetControl
GUIControl GetControl(string controlID)
Get GUI Control based on string ID
SetPosition
void SetPosition(int x, int y)
Moves the GUI to have its top-left corner at the specified position.
SetSize
void SetSize(int width, int height)
Changes the size of the GUI.